package jdk.thread.lock;

import java.util.concurrent.locks.ReentrantLock;

public class ReentrantLockTest {
    public static void main(String[] args) throws InterruptedException {
        ReentrantLock lock = new ReentrantLock();
        lock.tryLock();
        lock.lock();
        lock.unlock();
        lock.newCondition().signalAll();
        lock.newCondition().signal();
        lock.newCondition().await();
    }
}